// 反汇编boot镜像得到的伪代码
__int64 sub_FFFFFF800843A278()
{
  unsigned __int64 v0; // x0
  unsigned __int64 v1; // x20
  __int64 v2; // x19
  unsigned int n136455367; // w25
  int i; // w26
  int n126975; // w27
  char *v6; // x1
  char v7; // t1
  unsigned int n1564889118; // w26
  int n4190207; // w27
  int n126975_1; // w28
  char *v11; // x1
  char v12; // t1
  __int64 result; // x0

  v0 = sub_FFFFFF8008439EE0(0LL, "system", 1LL);
  if ( v0 > 0xFFFFFFFFFFFFF000LL )
  {
    sub_FFFFFF80080F5230(&unk_FFFFFF8008907578);
    return 1LL;
  }
  else
  {
    v1 = v0;
    v2 = sub_FFFFFF8008180628(126976LL, 20971712LL, 5LL);
    if ( v2 )
    {
      n136455367 = -1;
      for ( i = 0; i <= 32759807; i += n126975 )
      {
        n126975 = 32759808 - i;
        if ( (unsigned int)(32759807 - i) > 0x1EFFE )
        {
          if ( n126975 <= 126975 )
            break;
          n126975 = 126976;
        }
        sub_FFFFFF800880F280(v2, 255LL, 126976LL);
        if ( ((int)sub_FFFFFF8008439A38(v1, (unsigned int)i / 0x1F000uLL, v2, 0LL, (unsigned int)n126975, 0LL) & 0x8000000000000000LL) != 0 )
        {
LABEL_26:
          sub_FFFFFF80080F5230(&unk_FFFFFF80089075D8);
          sub_FFFFFF80084394B0(v1);
          sub_FFFFFF80081AEAA8(v2);
          return 1LL;
        }
        v6 = (char *)v2;
        do
        {
          v7 = *v6++;
          n136455367 = dword_FFFFFF800887E8F0[(unsigned __int8)(n136455367 ^ v7)] ^ (n136455367 >> 8);
        }
        while ( (char *)(v2 + 1 + (unsigned int)(n126975 - 1)) != v6 );
      }
      sub_FFFFFF80084394B0(v1);
      n1564889118 = -1;
      n4190207 = 0;
      v1 = sub_FFFFFF8008439EE0(0LL, "m_webui", 1LL);
      if ( v1 > 0xFFFFFFFFFFFFF000LL )
      {
        sub_FFFFFF80080F5230(&unk_FFFFFF8008907618);
        sub_FFFFFF80081AEAA8(v2);
        return 1LL;
      }
      else
      {
        do
        {
          n126975_1 = 4190208 - n4190207;
          if ( (unsigned int)(4190207 - n4190207) > 0x1EFFE )
          {
            if ( n126975_1 <= 126975 )
              break;
            n126975_1 = 126976;
          }
          sub_FFFFFF800880F280(v2, 255LL, 126976LL);
          if ( ((int)sub_FFFFFF8008439A38(
                       v1,
                       (unsigned int)n4190207 / 0x1F000uLL,
                       v2,
                       0LL,
                       (unsigned int)n126975_1,
                       0LL) & 0x8000000000000000LL) != 0 )
            goto LABEL_26;
          v11 = (char *)v2;
          do
          {
            v12 = *v11++;
            n1564889118 = dword_FFFFFF800887E8F0[(unsigned __int8)(n1564889118 ^ v12)] ^ (n1564889118 >> 8);
          }
          while ( (char *)((unsigned int)(n126975_1 - 1) + v2 + 1) != v11 );
          n4190207 += n126975_1;
        }
        while ( n4190207 <= 4190207 );
        sub_FFFFFF80084394B0(v1);
        sub_FFFFFF80081AEAA8(v2);
        result = 1LL;
        if ( n136455367 != 136455367 || n1564889118 != 1564889118 )
        {
          sub_FFFFFF80080F5230(&unk_FFFFFF8008907650);
          return 0LL;
        }
      }
    }
    else
    {
      sub_FFFFFF80080F5230(&unk_FFFFFF80089075B0);
      return 1LL;
    }
  }
  return result;
}